xenstored: use grant references instead of map_foreign_range
authorAlex Zeffertt <alex.zeffertt@eu.citrix.com>
Thu, 9 Feb 2012 18:33:32 +0000 (18:33 +0000)
committerAlex Zeffertt <alex.zeffertt@eu.citrix.com>
Thu, 9 Feb 2012 18:33:32 +0000 (18:33 +0000)
commit65e5c77022c9e2723de437a931e0783920422f1a
tree25bcc00a5bc879fb7bd6bc4952a56725b9f9f56b
parent434a41d81776964364f426e3132489003c05e5df
xenstored: use grant references instead of map_foreign_range

make xenstored use grantref rather than map_foreign_range (which can
only be used by privileged domains)

This patch modifies the xenstore daemon to use xc_gnttab_map_grant_ref
instead of xc_map_foreign_range where available.

Previous versions of this patch have been sent to xen-devel. See
http://lists.xensource.com/archives/html/xen-devel/2008-07/msg00610.html
http://lists.xensource.com/archives/html/xen-devel/2009-03/msg01492.html

Signed-off-by: Diego Ongaro <diego.ongaro@citrix.com>
Signed-off-by: Alex Zeffertt <alex.zeffertt@eu.citrix.com>
Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
tools/xenstore/xenstored_domain.c